import 'package:flutter/material.dart';
import 'package:goumao_app/Customs/gm_app_util.dart';

class GMFeedBackScreen extends StatefulWidget {
  const GMFeedBackScreen({super.key});

  @override
  // ignore: library_private_types_in_public_api
  _GMFeedBackScreenState createState() => _GMFeedBackScreenState();
}

class _GMFeedBackScreenState extends State<GMFeedBackScreen> {
  TextEditingController _controller = TextEditingController();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        elevation: 0,
        title: GMAppUtil.navText('用户反馈'),
        centerTitle: true,
      ),
      body: Container(
        padding: const EdgeInsets.only(left: 10.0, right: 10.0, top: 20.0),
        child: Wrap(
          alignment: WrapAlignment.center,
          runSpacing: 10.0,
          children: <Widget>[
            const Text('请将您的反馈填写下处，我们会及时收到'),
            TextField(
              decoration: const InputDecoration(
                  hintText: '请在此处详细描述您的问题或建议',
                  hintStyle: TextStyle(color: Color(0xFF808080)),
                  border: OutlineInputBorder(
                      borderRadius: BorderRadius.all(Radius.circular(10.0)))),
              maxLines: 6,
              maxLength: 150,
              controller: _controller,
            ),
            ElevatedButton(
              style: ButtonStyle(
                  backgroundColor: MaterialStateProperty.all<Color?>(
                      GMAppUtil.kAppThemColor)),
              child: const SizedBox(
                height: 50.0,
                child: Center(
                  child: Text(
                    '提交',
                    style: TextStyle(fontSize: 16.0, color: Colors.white, fontWeight: FontWeight.w500),
                  ),
                ),
              ),
              onPressed: () {},
            ),
          ],
        ),
      ),
    );
  }
}
